<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Stock In PreAdd</title>
        <#include "../../../inc/css.ftl">
		<link rel="stylesheet" href="${request.contextPath}/static/asset/jquery-ui/1.11.1/jquery-ui.min.css">
		<link rel="stylesheet" href="${request.contextPath}/static/asset/jquery/jquery.autocomplete/autocomplete.css">
	</head>
	<body class="no-skin">
		<div class="container-fluid">
			<div class="row">
			  <div class="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i><a href="${request.contextPath}/index.jspx" target="_top">首页</a></li>
					<li><a href="">仓库</a></li>
					<li><a href="list.jspx">物料出入库管理</a></li>
					<li class="active">返库</li>
				</ul>
				  <!-- /.breadcrumb -->
			  </div>
			  <!-- /.breadcrumbs -->
			</div>
			<!-- /.row -->
			<div class="row">
				<div class="page-content">
					<div class="page-header">
						<h1>物料返库信息</h1>
					</div>
					<div class="row">
						<div class="col-xd-12">
						    <form action="add.jspx" method="post" class="form-horizontal" role="form" id="form-data">
						    	<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 编号  </label>
									<div class="col-sm-4">
										<input type="text" id="code" name="code" placeholder="编号" class="control-form" value="${stockInCode!''}" />
									</div>
								</div>
						    	<div class="form-group">
						    		<label class="col-sm-2 control-label no-padding-right"> 物料编号  </label>
									<div class="col-sm-10">
										<input type="text" id="material_code" name="materialCode" placeholder="物料编号" class="control-form" />
									</div>
									<div class="col-sm-offset-2 col-sm-10" style="padding-top:15px;">
										<b>名称:</b> <span id="material_name"></span> <br/>
										<b>型号:</b> <span id="material_model"></span><br/>
										<b>规格:</b> <span id="material_specification"></span><br/>
										<b>颜色:</b> <span id="material_color"></span>
									</div>
									
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 数量  </label>
									<div class="col-sm-10">
										<input type="text" name="totalNum" size="15"><span id="span_material_unit"></span>
										<input type="hidden" id="material_unit" name="unit">
									</div>
								</div>

                                <div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 备注  </label>
									<div class="col-sm-10">
										<textarea name="memo" rows="5" cols="40"></textarea>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">添加时间</label>
									<div class="col-sm-3">
										<input type="text" name="addtime" value="${.now}">
									</div>
								</div>
								<div class="clearfix form-actions">
									<div class="col-sm-offset-2 col-sm-4">
										<button type="reset" class="btn">
											<i class="ace-icon fa fa-undo bigger-110"></i>
											重置
										</button>
										&nbsp;&nbsp;
										<button type="submit" class="btn btn-info">
											<i class="ace-icon fa fa-check bigger-110"></i>
											提交
										</button>
									</div>
								</div>
						    </form>
					    </div>
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<#include "../../../inc/js.ftl">
		<script src="${request.contextPath}/static/asset/jquery-ui/1.11.1/jquery-ui.min.js"></script>
		<script src="${request.contextPath}/static/asset/jquery/jquery.autocomplete/jquery.autocomplete.min.js"></script>
		<script src="${request.contextPath}/static/skin/default/js/repo-list.js"></script>
		<script>
			$(document).ready(function(){
				repo.setCtx("${request.contextPath}");
				repo.Stock.In.autocomplete("#material_code");
				root.Validator.StockReturn.validate();
			});
		</script>
	</body>
</html>